package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.domain.entity.ext.ConditionsEntityExt;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/9/7 16:17
 * @desrcption:
 */
@Getter
@Setter
@ToString
public class ListGroupUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = -4425883486466216171L;
    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.listGroupUpdate.appId.NotNull}")
    private Long appId;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.listGroupUpdate.formId.NotNull}")
    private Long formId;

    @NotNull(message = "{dto.msg.listGroupUpdate.listGroupId.NotNull}")
    private Long listGroupId;
    /**
     * 列表分组名称
     */
    @NotBlank(message = "{dto.msg.listGroupUpdate.name.NotBlank}")
    @Size(min = 1,max = 10,message = "{dto.msg.listGroupUpdate.name.Size}")
    private String name;

    @NotEmpty(message = "{dto.msg.listGroupUpdate.data.NotEmpty}")
    private List<ConditionsEntityExt> data;

}
